<table width="200" border="1">
    <tr style="text-align:center;">
    	<th width="7%">
    		<input type="checkbox" onclick="list.checkall(this);" />
    		ID
		</th>
		<th width="10%"><%= t(:a_member_name)%></th>
		<th width="25%" align="center"><%= t(:a_member_email)%></th>
		<th width="7%" align="center"><%= t(:a_m_points)%></th>
		<th width="8%" align="center"><%= t(:a_m_mall_currency)%></th>
		<th width="10%" align="center"><%= t(:a_email_check)%></th>
		<th width="10%" align="center"><%= t(:a_user_rank)%></th>
		<th width="10%" align="center"><%= t(:a_register_time)%></th>
		<th width="5%" align="center"><%= t(:a_lock)%></th>
		<th width="8%" align="center"><%= t(:a_operate)%></th>
    </tr>
	<% @users.each do |user|%>
    <tr>
    	<td>
    		<input type="checkbox" name="batch[]" value="<%= user.id%>" />
    		<%= user.id%>
		</td>
		<td><%= user.login%></td>
		<td align="center"><%= user.email%></td>
		<td align="center"><%= user.points%></td>
		<td align="center"><%= user.coin%></td>
		<td align="center"><%= user.show_email_check%></td>
		<td align="center"><%= user.try(:user_rank).try(:name)%></td>
		<td align="center"><%= user.show_reg_time%></td>
		<td align="center">
			<% if user.locked%>
				<%= link_to_remote(image_tag("/images/admin/unlock.gif", :alt => "", :id => "img_#{user.id}"), :url => {:controller => 'admin/member', :action => :lock, :id => user.id})%>
			<% else%>
				<%= link_to_remote(image_tag("/images/admin/lock.gif", :alt => "", :id => "img_#{user.id}"), :url => {:controller => 'admin/member', :action => :lock, :id => user.id})%>
			<% end%>
		</td>
		<td align="center">
			<%= link_to image_tag("/images/admin/do_edit.gif", :alt => "修改"), {:controller => "/admin/member", :action => :edit, :id => user.id}%>
			<%= link_to_remote image_tag("/images/admin/do_drop.gif", :alt => "刪除"), :url => {:controller => "/admin/member", :action => :destroy, :id => user.id}%>
		</td>
    </tr>
	<% end%>
</table>
<%= will_paginate @users%>